package com.everflourish.yeah100.entity.userinfo;

import java.util.List;

/**
 * 角色信息
 * 
 * @author pf
 * @date 2015-1-29
 */
public class Role {
	public String id;
	public String description;
	public String name;
	public List<Permission> permissions;
	public Role(){}
	public Role(String name){
		this.name = name;
	}
	@Override
	public String toString() {
		return "Role [id=" + id + ", description=" + description + ", name="
				+ name + ", permissions=" + permissions + "]";
	}
}

/**
 * 权限信息
 * 
 * @author pf
 * @date 2015-1-29
 */
class Permission {
	public String id;
	public String description;
	public String name;

	@Override
	public String toString() {
		return "Permission [id=" + id + ", description=" + description
				+ ", name=" + name + "]";
	}
}